package com.wsoft.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 当前登录用户缓存对象
 *
 * @author: juiet
 * @date: 2024年09月03日 13:57
 */
@Data
public class LoginUserVO implements Serializable {
    private static final long serialVersionUID = -1;
    @Schema(description = "用户id")
    private Long id;

    @Schema(description = "账号id")
    private Long accountId;

    @Schema(description = "登录名")
    private String loginName;

    @Schema(description = "登录账号")
    private String loginPw;

    @Schema(description = "布局风格(default,window)")
    private String configLayout;

    @Schema(description = "布局皮肤")
    private String configSkin;

    @Schema(description = "布局位置(left/right/top/bottom)")
    private String configLocation;

    @Schema(description = "是否管理员")
    private Integer isAdmin;

    @Schema(description = "是否启用")
    private Integer isUsed;

    @Schema(description = "编号")
    private String code;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "男M/女F")
    private String gender;

    @Schema(description = "手机号")
    private Long phone;

    @Schema(description = "住址")
    private String address;

    @Schema(description = "头像")
    private String photo;

    @Schema(description = "职务级别")
    private Long levelId;

    @Schema(description = "主任职组织")
    private Long curOrgId;

    @Schema(description = "主任职岗位")
    private Long curPostId;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "数据字典(在职、离职、停岗)")
    private Integer status;

    @Schema(description = "登录组织_id")
    private Long loginOrgId;

    @Schema(description = "登录组织_编码")
    private String loginOrgCode;

    @Schema(description = "登录组织_名称")
    private String loginOrgName;

    @Schema(description = "登录人角色列表")
    private List<RoleVO> roles;
}
